package com.xinzhi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分类表
 * </p>
 *
 * @author laohan
 * @since 2024-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Categories对象", description="分类表")
public class Categories implements Serializable {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String uuid;

    @ApiModelProperty(value = "分类图片")
    private String thumb;

    @ApiModelProperty(value = "分类标题")
    private String title;

    @ApiModelProperty(value = "子标题")
    private String subTitle;

    @ApiModelProperty(value = "短描述 ")
    private String description;

    @ApiModelProperty(value = "分类类型, 如product为商品分类、 article为文章分类")
    private String type;

    @ApiModelProperty(value = "是否显示到首页")
    private Boolean isHome;

    @ApiModelProperty(value = "是否显示在分类列表页")
    private Boolean isListed;

    @ApiModelProperty(value = "列表权重")
    private Integer listWeight;

    @ApiModelProperty(value = "分类层级，默认最顶上的一级分类")
    private Integer level;

    @ApiModelProperty(value = "父级分类id")
    private Integer parentId;

    private Date deletedAt;

    private Date createdAt;

    private Date updatedAt;

    @ApiModelProperty(value = "分类内商品是否显示在小程序端")
    private Boolean isShowProductMiniapp;


}
